package com.game.message.jpb;

import com.baidu.bjf.remoting.protobuf.FieldType;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import org.springframework.core.style.ToStringCreator;
import org.springframework.stereotype.Component;

/**
 * Created by legend9999 on 2016/6/25.
 */
@Component
public class SuperJPB {
	@Protobuf(fieldType = FieldType.INT32, order = 1, required = true)
	private int magicNum;
	@Protobuf(fieldType = FieldType.INT32, order = 2)
	private int userId;
	private int msgId;
	public int getMsgId() {
		return msgId;
	}

	public void setMsgId(int msgId) {
		this.msgId = msgId;
	}

	public int getMagicNum() {
		return magicNum;
	}

	public void setMagicNum(int magicNum) {
		this.magicNum = magicNum;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	@Override
	public String toString() {
		return new ToStringCreator(this).toString();
	}
}
